﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F99 RID: 3993
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMiracle : IMessage<RogueMiracle>, IMessage, IEquatable<RogueMiracle>, IDeepCloneable<RogueMiracle>, IBufferMessage
	{
		// Token: 0x1700329C RID: 12956
		// (get) Token: 0x0600B2E3 RID: 45795 RVA: 0x001E33D8 File Offset: 0x001E15D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMiracle> Parser
		{
			get
			{
				return RogueMiracle._parser;
			}
		}

		// Token: 0x1700329D RID: 12957
		// (get) Token: 0x0600B2E4 RID: 45796 RVA: 0x001E33DF File Offset: 0x001E15DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMiracleReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700329E RID: 12958
		// (get) Token: 0x0600B2E5 RID: 45797 RVA: 0x001E33F1 File Offset: 0x001E15F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMiracle.Descriptor;
			}
		}

		// Token: 0x0600B2E6 RID: 45798 RVA: 0x001E33F8 File Offset: 0x001E15F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMiracle()
		{
		}

		// Token: 0x0600B2E7 RID: 45799 RVA: 0x001E340C File Offset: 0x001E160C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMiracle(RogueMiracle other) : this()
		{
			this.curTimes_ = other.curTimes_;
			this.dPDOKIFJOGB_ = other.dPDOKIFJOGB_.Clone();
			this.maxTimes_ = other.maxTimes_;
			this.miracleId_ = other.miracleId_;
			this.durability_ = other.durability_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B2E8 RID: 45800 RVA: 0x001E3471 File Offset: 0x001E1671
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMiracle Clone()
		{
			return new RogueMiracle(this);
		}

		// Token: 0x1700329F RID: 12959
		// (get) Token: 0x0600B2E9 RID: 45801 RVA: 0x001E3479 File Offset: 0x001E1679
		// (set) Token: 0x0600B2EA RID: 45802 RVA: 0x001E3481 File Offset: 0x001E1681
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurTimes
		{
			get
			{
				return this.curTimes_;
			}
			set
			{
				this.curTimes_ = value;
			}
		}

		// Token: 0x170032A0 RID: 12960
		// (get) Token: 0x0600B2EB RID: 45803 RVA: 0x001E348A File Offset: 0x001E168A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MapField<uint, uint> DPDOKIFJOGB
		{
			get
			{
				return this.dPDOKIFJOGB_;
			}
		}

		// Token: 0x170032A1 RID: 12961
		// (get) Token: 0x0600B2EC RID: 45804 RVA: 0x001E3492 File Offset: 0x001E1692
		// (set) Token: 0x0600B2ED RID: 45805 RVA: 0x001E349A File Offset: 0x001E169A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxTimes
		{
			get
			{
				return this.maxTimes_;
			}
			set
			{
				this.maxTimes_ = value;
			}
		}

		// Token: 0x170032A2 RID: 12962
		// (get) Token: 0x0600B2EE RID: 45806 RVA: 0x001E34A3 File Offset: 0x001E16A3
		// (set) Token: 0x0600B2EF RID: 45807 RVA: 0x001E34AB File Offset: 0x001E16AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MiracleId
		{
			get
			{
				return this.miracleId_;
			}
			set
			{
				this.miracleId_ = value;
			}
		}

		// Token: 0x170032A3 RID: 12963
		// (get) Token: 0x0600B2F0 RID: 45808 RVA: 0x001E34B4 File Offset: 0x001E16B4
		// (set) Token: 0x0600B2F1 RID: 45809 RVA: 0x001E34BC File Offset: 0x001E16BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Durability
		{
			get
			{
				return this.durability_;
			}
			set
			{
				this.durability_ = value;
			}
		}

		// Token: 0x0600B2F2 RID: 45810 RVA: 0x001E34C5 File Offset: 0x001E16C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMiracle);
		}

		// Token: 0x0600B2F3 RID: 45811 RVA: 0x001E34D4 File Offset: 0x001E16D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMiracle other)
		{
			return other != null && (other == this || (this.CurTimes == other.CurTimes && this.DPDOKIFJOGB.Equals(other.DPDOKIFJOGB) && this.MaxTimes == other.MaxTimes && this.MiracleId == other.MiracleId && this.Durability == other.Durability && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B2F4 RID: 45812 RVA: 0x001E3554 File Offset: 0x001E1754
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurTimes != 0U)
			{
				num ^= this.CurTimes.GetHashCode();
			}
			num ^= this.DPDOKIFJOGB.GetHashCode();
			if (this.MaxTimes != 0U)
			{
				num ^= this.MaxTimes.GetHashCode();
			}
			if (this.MiracleId != 0U)
			{
				num ^= this.MiracleId.GetHashCode();
			}
			if (this.Durability != 0U)
			{
				num ^= this.Durability.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B2F5 RID: 45813 RVA: 0x001E35EC File Offset: 0x001E17EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B2F6 RID: 45814 RVA: 0x001E35F4 File Offset: 0x001E17F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B2F7 RID: 45815 RVA: 0x001E3600 File Offset: 0x001E1800
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MaxTimes != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.MaxTimes);
			}
			if (this.CurTimes != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.CurTimes);
			}
			if (this.MiracleId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.MiracleId);
			}
			this.dPDOKIFJOGB_.WriteTo(ref output, RogueMiracle._map_dPDOKIFJOGB_codec);
			if (this.Durability != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Durability);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B2F8 RID: 45816 RVA: 0x001E36A4 File Offset: 0x001E18A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurTimes != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurTimes);
			}
			num += this.dPDOKIFJOGB_.CalculateSize(RogueMiracle._map_dPDOKIFJOGB_codec);
			if (this.MaxTimes != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxTimes);
			}
			if (this.MiracleId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MiracleId);
			}
			if (this.Durability != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Durability);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B2F9 RID: 45817 RVA: 0x001E3740 File Offset: 0x001E1940
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMiracle other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurTimes != 0U)
			{
				this.CurTimes = other.CurTimes;
			}
			this.dPDOKIFJOGB_.MergeFrom(other.dPDOKIFJOGB_);
			if (other.MaxTimes != 0U)
			{
				this.MaxTimes = other.MaxTimes;
			}
			if (other.MiracleId != 0U)
			{
				this.MiracleId = other.MiracleId;
			}
			if (other.Durability != 0U)
			{
				this.Durability = other.Durability;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B2FA RID: 45818 RVA: 0x001E37C9 File Offset: 0x001E19C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B2FB RID: 45819 RVA: 0x001E37D4 File Offset: 0x001E19D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num == 16U)
					{
						this.MaxTimes = input.ReadUInt32();
						continue;
					}
					if (num == 32U)
					{
						this.CurTimes = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 40U)
					{
						this.MiracleId = input.ReadUInt32();
						continue;
					}
					if (num == 98U)
					{
						this.dPDOKIFJOGB_.AddEntriesFrom(ref input, RogueMiracle._map_dPDOKIFJOGB_codec);
						continue;
					}
					if (num == 104U)
					{
						this.Durability = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004858 RID: 18520
		private static readonly MessageParser<RogueMiracle> _parser = new MessageParser<RogueMiracle>(() => new RogueMiracle());

		// Token: 0x04004859 RID: 18521
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400485A RID: 18522
		public const int CurTimesFieldNumber = 4;

		// Token: 0x0400485B RID: 18523
		private uint curTimes_;

		// Token: 0x0400485C RID: 18524
		public const int DPDOKIFJOGBFieldNumber = 12;

		// Token: 0x0400485D RID: 18525
		private static readonly MapField<uint, uint>.Codec _map_dPDOKIFJOGB_codec = new MapField<uint, uint>.Codec(FieldCodec.ForUInt32(8U, 0U), FieldCodec.ForUInt32(16U, 0U), 98U);

		// Token: 0x0400485E RID: 18526
		private readonly MapField<uint, uint> dPDOKIFJOGB_ = new MapField<uint, uint>();

		// Token: 0x0400485F RID: 18527
		public const int MaxTimesFieldNumber = 2;

		// Token: 0x04004860 RID: 18528
		private uint maxTimes_;

		// Token: 0x04004861 RID: 18529
		public const int MiracleIdFieldNumber = 5;

		// Token: 0x04004862 RID: 18530
		private uint miracleId_;

		// Token: 0x04004863 RID: 18531
		public const int DurabilityFieldNumber = 13;

		// Token: 0x04004864 RID: 18532
		private uint durability_;
	}
}
